package cn.gzten.lambda.dynamo.sample;

import cn.gzten.lambda.runtime.LambdaRuntime;
import cn.gzten.lambda.runtime.RequestHandlerRegistration;
import cn.gzten.lambda.runtime.logging.LambdaLoggerHolder;
import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent;
import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent;

import java.util.Arrays;

public class NativeDynamoDBApp {
    public static void main(String[] args) {
        LambdaLoggerHolder.enableDebug();
        /**
         * You can register different Handlers here, only the handler configured in the Lambda `Handler` place will be invoked.
         */
        new LambdaRuntime(Arrays.asList(
//                new RequestHandlerRegistration<>(new APIGatewayRequestHandler(), APIGatewayProxyRequestEvent.class, APIGatewayProxyResponseEvent.class),
                new RequestHandlerRegistration<>(new IdentityRequestHandler(), APIGatewayProxyRequestEvent.class, APIGatewayProxyResponseEvent.class)
        )).run();
    }
}
